package com.canaan.business.domain.invoice;

import com.canaan.common.annotation.Excel;
import com.canaan.common.annotation.TableName;
import com.canaan.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 销售订单明细对象 wms_sales_order_detail
 *
 * @author ruoyi
 * @date 2022-12-13
 */
@TableName("wms_sales_order_detail")
public class WmsSalesOrderDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 编号 */
    @Excel(name = "编号")
    private String no;

    /** 销售订单编号 */
    @Excel(name = "销售订单编号")
    private String orderNo;

    /** 物料编号 */
    @Excel(name = "物料编号")
    private String productNo;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String productName;

    /** 物料单位 */
    @Excel(name = "物料单位")
    private String productUnit;

    /** 销售订单明细状态，1新建 2待拣货 3已拣货 */
    @Excel(name = "销售订单明细状态", dictType = "invoice_sales_order_detail_status")
    private Integer orderDetailStatus;

    /** 订单数量 */
    @Excel(name = "订单数量")
    private Long orderQty;

    /** 拣货数量 */
    @Excel(name = "拣货数量")
    private Long pickingQty;

    /** 批次号 */
    @Excel(name = "批次号")
    private String batchNo;

    /** 库位编号 */
    @Excel(name = "库位编号")
    private String storehouseLocationNo;

    /** 拣货员 */
    @Excel(name = "拣货员")
    private String picker;

    /** 是否删除：1是 0否 */
    private String delFlag;

    /** 创建人 */
//    @Excel(name = "创建人")
    private String createBy;

    /** 更新人 */
//    @Excel(name = "更新人")
    private String updateBy;

    /** 排序 */
//    @Excel(name = "排序")
    private Integer sort;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setNo(String no)
    {
        this.no = no;
    }

    public String getNo()
    {
        return no;
    }
    public void setOrderNo(String orderNo)
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo()
    {
        return orderNo;
    }
    public void setBatchNo(String batchNo)
    {
        this.batchNo = batchNo;
    }

    public String getBatchNo()
    {
        return batchNo;
    }
    public void setProductNo(String productNo)
    {
        this.productNo = productNo;
    }

    public String getProductNo()
    {
        return productNo;
    }
    public void setStorehouseLocationNo(String storehouseLocationNo)
    {
        this.storehouseLocationNo = storehouseLocationNo;
    }

    public String getStorehouseLocationNo()
    {
        return storehouseLocationNo;
    }
    public void setPicker(String picker)
    {
        this.picker = picker;
    }

    public String getPicker()
    {
        return picker;
    }
    public void setOrderDetailStatus(Integer orderDetailStatus)
    {
        this.orderDetailStatus = orderDetailStatus;
    }

    public Integer getOrderDetailStatus()
    {
        return orderDetailStatus;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setCreateBy(String createBy)
    {
        this.createBy = createBy;
    }

    public String getCreateBy()
    {
        return createBy;
    }
    public void setUpdateBy(String updateBy)
    {
        this.updateBy = updateBy;
    }

    public String getUpdateBy()
    {
        return updateBy;
    }
    public void setSort(Integer sort)
    {
        this.sort = sort;
    }

    public Integer getSort()
    {
        return sort;
    }

    public Long getOrderQty() {
        return orderQty;
    }

    public void setOrderQty(Long orderQty) {
        this.orderQty = orderQty;
    }

    public Long getPickingQty() {
        return pickingQty;
    }

    public void setPickingQty(Long pickingQty) {
        this.pickingQty = pickingQty;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductUnit() {
        return productUnit;
    }

    public void setProductUnit(String productUnit) {
        this.productUnit = productUnit;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("no", getNo())
            .append("orderNo", getOrderNo())
            .append("batchNo", getBatchNo())
            .append("productNo", getProductNo())
            .append("storehouseLocationNo", getStorehouseLocationNo())
            .append("picker", getPicker())
            .append("orderDetailStatus", getOrderDetailStatus())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .append("createUser", getCreateBy())
            .append("updateUser", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("createTime", getCreateTime())
            .append("sort", getSort())
            .toString();
    }

    private List<Long> ids;

    public List<Long> getIds() {
        return ids;
    }

    public void setIds(List<Long> ids) {
        this.ids = ids;
    }
}
